import { http, httpGet, httpPost } from '@/http/http'

// 获取预约列表
export async function getAppointList(data) {
  return httpGet('/yuyue/list', {
    userId: data.userId,
    zhuanjiaId: data.zhuanjiaId,
  })
}

// 添加预约
export async function addAppoint(data) {
  return httpPost('/yuyue/add', undefined, data)
}

// 修改预约
export async function editAppoint(data) {
  return http.put('/yuyue/edit', undefined, data)
}
